<div th:fragment="copy">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <div class="admin-logo-box">
                <a th:href="@{/index}">
                    <img th:src="@{/images/logo.png}"
                         class="logo" width="128px" height="128px" style="float: left; margin-top: -45px ">
                </a>
                    <div class="larry-side-menu">
                        <img th:src="@{images/ss.png}" width="44px" height="44px" alt="">
                    </div>
                </div>

                <ul class="layui-nav" lay-filter="">
                    <li class="layui-nav-item" id="time"
                        style="margin-right: 50px;font-weight: 300;font-size: 16px;color: #fff;position: absolute;left: -250px;top: 0"></li>
                    <li class="layui-nav-item"><img th:src="${session.sysUser.avatar}" class="layui-circle" width="35px"
                                                    height="35px" alt=""></li>
                    <li class="new-nav " id="gonggao">
                        <i></i>
                        <a href="#"><i class="iconfont">&#xe6bc;</i><span class="layui-badge"></span></a>
                        <ul class="news" id="gonggaos" style="display: none;">
                            <li class="dropdown-header" style="text-align: center;">[[${activityCount}]]条活动</li>
                            <li  style="border-bottom: 1px solid #e9e9e9;background: #f9f9f9"> <a href="javascript:;">
                                <div class="clearfix">
                                    <span class="pull-left"> <i class="btn btn-pink iconfont">&#xe6bc;</i> 小区活动 </span>
                                    <span class="pull-right badge badge-info">+[[${activityCount}]]</span>
                                </div> </a> </li>
                            <li  style="border-bottom: 1px solid #e9e9e9;background: #f9f9f9"> <a href="javascript:;" > <i dd_tclass="btn btn-primary iconfont">&#xe6bc;</i>活动 </a> </li>

                            <li > <a th:href="@{/activity_list}" style="color: #FF7700">查看所有活动 <i class="iconfont">&#xe69b;</i> </a> </li>
                        </ul>
                    </li>
                    <li class="new-nav" id="new-nav">
                        <i></i>
                        <a href="#"><i class="iconfont">&#xe713;</i><span class="layui-badge"></span></a>
                        <ul class="news" id="news" style="display: none;">
                            <li class="dropdown-header" style="text-align: center;">[[${complaintCount}]]条投诉</li>
                            <li style="border-bottom: 1px solid #e9e9e9;background: #f9f9f9"> <a href="#">
                                <div class="clearfix">
                                    <span class="pull-left"> <i class="btn btn-pink iconfont" style="font-size: 12px;">&#xe69b;</i> 投诉 </span>
                                    <span class="pull-right badge badge-info">+[[${complaintCount}]]</span>
                                </div> </a> </li>

                            <li> <a th:href="@{/complainlist}" style="color: #FF7700"> 查看所有投诉 <i class="iconfont">&#xe69b;</i> </a> </li>
                        </ul>
                    </li>

                    <li class="layui-nav-item"><a href="javascript:;">[[${session.sysUser.name}]]</a>
                        <dl class="layui-nav-child">
                            <!-- 二级菜单 -->
                            <dd><a th:href="@{/one_set}">个人信息</a>
                            </dd>
                            <dd><a th:href="@{/logout}">切换帐号</a></dd>
                            <dd><a th:href="@{/logout}" onclick="logout()">退出</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item x-index"><a href="#"></a></li>
                </ul>
            </div>
        </div>

        <!--左侧导航区域-->


        <div class="layui-side layui-bg-black x-side show_list" style="left:0px;top: 10px" id="table1">
            <div class="layui-side-scroll">

                <ul class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
                    <li class="layui-nav-item layui-this"><a class="javascript:;" href="javascript:;" th:href="@{/welcome}">
                        <i class="fa fa-university" lay-tips="首页"></i><cite>控制台</cite> </a>
                    </li>
                    <li class="layui-nav-item" th:each="category,var:${list}" th:if="${category.parentId==0}"> <a class="javascript:;" href="javascript:;"> <i th:class="${category.icon}" style="top: 3px;font-size:21px"></i><cite th:text="${category.categoryName}"></cite> </a>
                        <dl class="layui-nav-child">
                            <dd  th:each="child,count:${category.child}" th:if="${child.getParentId==category.categoryId}"> <a th:href="${child.address}"> <cite th:text="${child.categoryName}"></cite> </a> </dd>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

    </div>
</div>